package org.example.service.impl;

import org.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("us")
public class UserServiceImpl implements UserService {

    @Autowired
    private JdbcTemplate jdbcTemplate;


    @Override
    public void update0() {
        update1();
    }

    @Override
    @Transactional
    public void update1() {
        // 填写更新的信息
        int i = 1 / 0;
    }
}
